package com.mall.client.mall;

import java.util.List;

import com.mall.pojo.Mall;
import com.mall.query.Page;
import com.mall.query.search.MallSearchQuery;

public interface MallService {

	Mall getMallById(Long mallId);

	/**
	 * 店铺的ids
	 * 
	 * @param mallIds
	 * @return
	 */
	List<Mall> getMallListByMallIds(List<Long> mallIds);
	
	/**
	 * 根据query对象查询malllist
	 * @param mallSearchQuery
	 * @param page
	 * @return
	 */
	List<Mall> getMallListByQuery(MallSearchQuery mallSearchQuery,Page page);
	
	int insertMall(Mall mall);

	Mall getMallByUserIdAndOnlyKey(Long id, Integer onlyKey);
	
	Mall getMallByOnlyKey(Integer onlyKey);

	Integer modifyMallByPrimaryKey(Mall mall);
}
